﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using AMS.Chess.CommonLayer;

namespace AMS.Chess.Test
{
    public class TestPositionGenerator
    {
        public static List<ABoardPosition> GetTestMovePosition(AChessPiece movingPiece, ABoardPosition startPosition)
        {
            // just to make an actual move possible
            List<ABoardPosition> possibleMoves = new List<ABoardPosition>();
            StandardBoardPosition position = startPosition as StandardBoardPosition;
            int newRank = position.Rank > 6 ? position.Rank - 2 : position.Rank + 2;
            possibleMoves.Add(new StandardBoardPosition(newRank, position.File));

            return possibleMoves;
        }
    }
}
